package ai.leinao.common.actor;

/**
 * actor 引用
 *
 * @author zhong.wang
 * @date 2025/8/27
 **/
public interface ActorRef {
    /**
     * 获取actorId
     */
    String getActorId();

    /**
     * 获取父级actor
     * @return
     */
    ActorRef getParentRef();

    /**
     * 发送消息给 actorId
     * @param actorId
     * @param msg
     */
    void tell(String actorId, ActorMsg msg);


    /**
     * 发送消息
     * @param msg
     */
    void tell(ActorMsg msg);

    /**
     * 发送高优先级消息
     * @param msg
     */
    void tellHighPriority(ActorMsg msg);
}
